package com.example.testapp.activity.model;

/**
 * 每一条手机图片
 * Created by l on 2016/9/21.
 */
public class PhonePhotoItem extends SuperBean{

    private static final long serialVersionUID = 1L;

    private String content;   //文章内容
    private String author;
    public String docid;    //文章id
    private String title;   //文章标题
    private String pic;    // 导图地址
    private String date;  //时间

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getDocid() {
        return docid;
    }

    public void setDocid(String docid) {
        this.docid = docid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    @Override
    public String toString() {
        return "PhonePhotoItem{" +
                "content='" + content + '\'' +
                ", author='" + author + '\'' +
                ", docid='" + docid + '\'' +
                ", title='" + title + '\'' +
                ", pic='" + pic + '\'' +
                ", date='" + date + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if ( o instanceof PhonePhotoItem) {
            PhonePhotoItem item = (PhonePhotoItem) o;
            return this.docid.equals(item.docid);
        }
        return super.equals(o);
    }
}
